package org.goj.practice.utils;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import com.thoughtworks.xstream.annotations.XStreamOmitField;
import lombok.Data;
import org.goj.practice.dto.ProblemDTO;

import java.util.List;

/**
 * @author CK
 * @date 2021/3/31 17:16
 */
@Data
@XStreamAlias("fps")
public class ProblemList {

    @XStreamImplicit(itemFieldName = "item")
    @XStreamOmitField
    private List<ProblemDTO> problemList;

    @XStreamAsAttribute
    @XStreamAlias("generator")
    private String generator;

}
